package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._0._0封装;

/**
 * @ClassName Test0_0
 * @Description TODO
 * @Author zero
 * @DATE 2023/7/9 7:04 PM
 * @Version 1.0
 */
public class Test0_0 {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.setShoutNum(3);
        System.out.println(cat.shout());

        Dog dog = new Dog();
        dog.setShoutNum(5);
        System.out.println(dog.shout());
    }
}
